package com.neusoft.javafxdemo2;
/**
 * @author ：konan
 */

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.net.URL;

/**
 * 这个公共监督员端的入口类
 */
public class SupervisorLogin extends Application {
    public static void main(String[] args) {
        launch(args);
        System.out.println("test main");
        System.out.println("test log1...........");
        System.out.println("test log2...........");
        System.out.println("test log3...........");
        System.out.println("test log4...........");
        System.out.println("test log5...........");
    }
    @Override
    public void start(Stage stage) throws Exception {
        //加载登录fxml文件
        FXMLLoader fxmlLoader = new FXMLLoader();
        URL url = SupervisorLogin.class.getResource("SupervisorLoginView.fxml");
        fxmlLoader.setLocation(url);
        Parent root = fxmlLoader.load();
        Scene scene = new Scene(root);
        stage.setScene(scene);
        stage.show();
    }
}
